define guacamole::config::register(
  $content="",
  $protocol="ssh",
  $hostname,
  $username="",
  $password="",
  $privatekey="",
){
  concat::fragment{"manpage_fragment_$name":
    target  => "/tmp/user-mapping.xml",
    content => "\
    <connection name=\"$name\">\n\
      <protocol>$protocol</protocol>\n\
      <param name=\"username\">$username</param>\n\
      <param name=\"password\">$password</param>\n\
      <param name=\"hostname\">$hostname</param>\n\
      <param name=\"private-key\">$privatekey</param>\n\
    </connection>\n",
    order   => 02,
  }

}
